package org.zjt.platform.springbootreactivedemo.service;

import org.zjt.platform.springbootreactivedemo.entity.Person;
import org.springframework.web.reactive.function.server.ServerRequest;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author <a href="juntao.zhang@qq.com">juntao.zhang</a>
 * @Description:
 * @Package org.zjt.platform.springbootreactivedemo.service
 * @date 2018/3/15 10:47
 * @see
 */
public interface PersonService {

     Mono<Person> getPerson(ServerRequest request) ;

     Mono<Boolean> savePerson(ServerRequest request) ;

     Mono<Void> deletePerson(ServerRequest request);


     Flux<Person> getAllPerson();
}
